package com.util;

public class String233 {
    public static void main(String[] args) {
        String a = "change"; // 指向常量池“change”
        String b = new String("change"); // 指向堆中对象
        System.out.println(a.equals(b)); // true
        System.out.println(a == b); // falsex`x`
    }
}
